import { createApp } from 'vue'
import ArcoVue from '@arco-design/web-vue';
import App from './App.vue';
import '@arco-design/web-vue/dist/arco.css';

const app = createApp(App);
app.use(ArcoVue);

// // 根据系统主题设置 class
// const isDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
// document.body.setAttribute('arco-theme', isDark ? 'dark' : 'light');

// // 如果用户切换了系统主题也能跟着变
// window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', (e) => {
//   document.body.setAttribute('arco-theme', e.matches ? 'dark' : 'light');
// });
document.body.setAttribute('arco-theme', 'dark');
app.mount('#app');

